<?php

class Encyclopedie extends Eloquent {

    protected $table = 'encyclopedie';
    protected $primaryKey = 'article_id';
    public $timestamps = false;

    public function scopeId($query,$id){
        $query->whereArticleId($id);
    }
    
    public function scopeUrl($query,$url){
        $query->whereUrl($url);
    }
    
    public function scopeParentId($query,$id){
        $query->whereParentId($id);
    }
    
}
